#ifndef PIR_H_
#define PIR_H_

#include "recbase.h"
#include "rectype.h"
#include "stdffield.h"

namespace opsrc {
    namespace stdf {

        class Pir : public opsrc::stdf::RecBase
        {
        public:
            Pir(stdf_rec stdfrec,  int reclen, std::ios::pos_type fileRecFirstBytePosition, int orderindex, endian e, char* buf);
            virtual ~Pir();

            const StdfField<int> getHeadNum() const;
            void setHeadNum(StdfField<int> headnum);

            const StdfField<int> getSiteNum() const;
            void setSiteNum(StdfField<int> sitenum);

            void readFields(char *buf);

        protected:
            Pir();

        private:
            StdfField<int> head_num;
            StdfField<int> site_num;
            endian en;
            bool decodeFields;
        };

    }	// namespace stdf
}		// namespace opsrc

#endif /*PIR_H_*/
